package 母亲的牛奶;

import java.util.*;

public class Main {
    static int N = 21, A, B, C;
    static boolean[][][] st = new boolean[N][N][N];

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        A = in.nextInt();
        B = in.nextInt();
        C = in.nextInt();
        bfs();
        for (int c = 0; c <= C; c++) {
            for (int b = 0; b <= B; b++) {
                if (st[0][b][c]) {
                    System.out.print(c + " ");
                    break;
                }
            }
        }
    }

    private static void bfs() {
        Queue<PIII> q = new LinkedList<>();
        q.offer(new PIII(0, 0, C));
        st[0][0][C] = false;
        int[] W = {A, B, C};
        while (!q.isEmpty()) {
            PIII t = q.poll();
            for (int i = 0; i < 3; i++) {
                for (int j = 0; j < 3; j++) {
                    if (i != j) {
                        int[] w = {t.a, t.b, t.c};
                        int r = Math.min(w[i], W[j] - w[j]);
                        w[i] -= r;
                        w[j] += r;
                        int a = w[0], b = w[1], c = w[2];
                        if (!st[a][b][c]) {
                            st[a][b][c] = true;
                            q.offer(new PIII(a, b, c));
                        }
                    }
                }
            }
        }
    }
}

class PIII {
    int a, b, c;

    public PIII(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
}